using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DevExpress.ExpressApp.DC;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Xpo;
using DevExpress.Persistent.Validation;
namespace Ascent.QiPei.Module.BusinessObjects.Systems
{
  [DefaultClassOptions]
  [DevExpress.Persistent.Base.NavigationItemAttribute("系统管理")]
  [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("代码规则")]
  public partial class CodeGenerator : DevExpress.Persistent.BaseImpl.BaseObject
  {
    private System.Int32 _serial;
    private Ascent.QiPei.Module.BusinessObjects.Enums.CodeGeneratorRuleType _codeRule;
    private Ascent.QiPei.Module.BusinessObjects.Enums.CodeNameType _name;
    public CodeGenerator(DevExpress.Xpo.Session session)
      : base(session)
    {
    }
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("单号名称")]
    [RuleRequiredField(DefaultContexts.Save)]
    public Ascent.QiPei.Module.BusinessObjects.Enums.CodeNameType Name
    {
      get
      {
        return _name;
      }
      set
      {
        SetPropertyValue("Name", ref _name, value);
      }
    }
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("业务规则")]
    [RuleRequiredField(DefaultContexts.Save)]
    public Ascent.QiPei.Module.BusinessObjects.Enums.CodeGeneratorRuleType CodeRule
    {
      get
      {
        return _codeRule;
      }
      set
      {
        SetPropertyValue("CodeRule", ref _codeRule, value);
      }
    }
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("流水号")]
    public System.Int32 Serial
    {
      get
      {
        return _serial;
      }
      set
      {
        SetPropertyValue("Serial", ref _serial, value);
      }
    }
  }
}
